/**
 * 全局状态管理
 */
import { createStore} from "vuex";
import VuexPersist from 'vuex-persist'
import AuthorityModule from './modules/authority'

const store = createStore({
    modules: {
        authority: AuthorityModule
    }
    , plugins: [
        new VuexPersist({
            storage: window.localStorage
            , modules: ['authority']
        }).plugin
    ]
})

export default store;